package com.zy.dp.prototype.example4;

public class Product implements Cloneable
{
	private String productId;
	private String name;

	public String getProductId()
	{
		return productId;
	}

	public void setProductId(String productId)
	{
		this.productId = productId;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	@Override
	public String toString()
	{
		return "产品编号=" + this.productId + ",产品名称" + this.name;
	}

	@Override
	protected Object clone()
	{
		Object obj = null;
		try
		{
			obj = super.clone();
		}
		catch (CloneNotSupportedException e)
		{
			e.printStackTrace();
		}

		return obj;

	}

}
